<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main"><i class="glyphicon glyphicon-cog"></i> 系统管理</a></li>
        <li><a ui-sref="main.sys.log.list" class="active" ng-bind="title">业务日志</a></li>
    </ul>
</div>

<!-- 加载提醒 -->
<div ng-show="loading" class="text-center m-t-md text-lg dataWarn"><i class="fa fa-spin fa-spinner"></i> 数据加载中...</div>

<!-- 内容区域 -->
<div ng-hide="loading" class="wrapper-md content">
    <!-- 数据显示 -->
    <div class="wrapper-data">
        <div class="panel panel-default">
            <!-- 头部 -->
            <div class="panel-heading clearfix">
                <div class="w-auto">
                    <form ng-submit="search()" class="form-inline">
                        <div class="form-group">
                            <label for="identity">模块：</label> <input type="text"
                                                                     class="form-control" style="width: 180px"
                                                                     id="identity"
                                                                     placeholder="" ng-model="param.module">
                        </div>
                        <div class="form-group">
                            <label for="name">类型：</label> <input type="text"
                                                                 class="form-control" style="width: 180px" id="name"
                                                                 placeholder="" ng-model="param.type">
                        </div>
                        <div class="form-group">
                            <label for="name">操作人：</label> <input type="text"
                                                                  class="form-control" style="width: 180px" id="name"
                                                                  placeholder="" ng-model="param.username">
                        </div>
                        <div class="form-group">
                            <button type="submit" class="btn btn-primary new-primary"
                                    style="margin-left: 10px">查询
                            </button>

                        </div>
                    </form>
                </div>
            </div>

            <!-- 数据表格 -->
            <div class="table-responsive">
                <table class="table table-striped b-t b-light text-center">
                    <thead>
                    <tr>
                        <th>模块</th>
                        <th>类型</th>
                        <th>描述</th>
                        <th>操作人</th>
                        <th>操作时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in pageInfo.data">
                        <td class="v-middle">{{item.module}}</td>
                        <td class="v-middle">{{item.type}}</td>
                        <td class="v-middle">{{item.desc}}</td>
                        <td class="v-middle">{{item.user_name}}</td>
                        <td class="v-middle">{{item.create_time}}</td>
                        <td class="v-middle">

                            <a ui-sref="main.sys.log.detail({id: item.id_})">详情</a>&nbsp;&nbsp;&nbsp;
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <!-- /.table-responsive -->

            <!-- 底部分页 -->
            <span data-ng-include=" 'src/tpl/pageInfo.html' "></span>
        </div>
    </div>

</div>
